package com.ch.tools.client.simulator.observable;

import com.ch.ms.dto.MapleServerDto;

import java.util.List;
import java.util.Observable;

public class MapleServerPacketObservable extends Observable {


    private List<? extends MapleServerDto> mapleServers;


    public void setMapleServers(List<? extends MapleServerDto> mapleServers) {

        this.mapleServers = mapleServers;
        this.setChanged();//标记此 Observable对象为已改变的对象
        this.notifyObservers();//通知所有的观察者
    }

    public List<? extends MapleServerDto> getMapleServers() {
        return mapleServers;
    }
}
